var types;
var pageObject = {
  data: {
    defaultSize: 'default',
    primarySize: 'default',
    warnSize: 'default',
    disabled: false,
    plain: false,
    loading: false,
    cardId:''
  },
  cardIdInput : function(e) {
    //console.log(this)
    this.setData({
      cardId:e.detail.value
    });
    //console.log(e)
  },
  balance_enquery : function(e) {
    console.log(this.data.cardId);
    wx.showModal({
      title: '卡号',
      content: this.data.cardId,
      success: function(res) {
          if(res.confirm) {
            wx.navigateTo({
              url: '/pages/index/index',
            })
          }
      }
    })
    
  }
}

Page(pageObject)